﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration" />
  </configSections>

  <unity>
    <!-- 领域程序集 -->
    <assembly name="MIS.Domain" />

    <!-- 领域接口层命名空间 -->
    <namespace name="MIS.Domain.Contracts" />

    <!--<typeAliases>
      <typeAlias alias="IContract" type="Promising.MIS.Domain.Contracts.IContract, Promising.MIS.Domain" />
      <typeAlias alias="Handle" type="Promising.MIS.Domain.Handlers.Handle, Promising.MIS.Domain" />
    </typeAliases>-->

    <sectionExtension type="Microsoft.Practices.Unity.InterceptionExtension.Configuration.InterceptionConfigurationExtension, Microsoft.Practices.Unity.Interception.Configuration" />

    <containers>
      <container>
        <extension type="Interception" />

        <interceptors>
          <interceptor type="InterfaceInterceptor">
            <key type="IContract"/>
          </interceptor>
        </interceptors>
      </container>
    </containers>
  </unity>
</configuration>
